package DesignPatern.A03_抽象工厂模式.QXB;

/**
 * @Author: Du
 * @Date: 2021/7/20 22:19
 */
public class A01_Main
{
    public static void main(String[] args)
    {
        HumanFactory maleFactory = new MaleFactory();
        HumanFactory femaleFactory = new FemaleFactory();
        
        Human maleBlackHuman = maleFactory.createBlackHuman();
        maleBlackHuman.getColor();
        maleBlackHuman.talk();
        maleBlackHuman.getSex();
        
        Human femaleBlackHuman = femaleFactory.createBlackHuman();
        femaleBlackHuman.getColor();
        femaleBlackHuman.talk();
        femaleBlackHuman.getSex();
    }
}
